using System.Runtime.CompilerServices;
using Triton.Game.Mapping;

namespace Triton.Game.Data
{
	public class QuestTileData
	{
		[CompilerGenerated]
		private AchievementData achievementData_0;

		[CompilerGenerated]
		private bool bool_0;

		[CompilerGenerated]
		private bool bool_1;

		[CompilerGenerated]
		private readonly int int_0;

		[CompilerGenerated]
		private readonly string string_0;

		public AchievementData Achievement
		{
			[CompilerGenerated]
			get
			{
				return achievementData_0;
			}
			[CompilerGenerated]
			private set
			{
				achievementData_0 = value;
			}
		}

		public bool IsCancelable
		{
			[CompilerGenerated]
			get
			{
				return bool_0;
			}
			[CompilerGenerated]
			private set
			{
				bool_0 = value;
			}
		}

		public bool ShouldCancel
		{
			[CompilerGenerated]
			get
			{
				return bool_1;
			}
			[CompilerGenerated]
			set
			{
				bool_1 = value;
			}
		}

		public int AchievementId
		{
			[CompilerGenerated]
			get
			{
				return int_0;
			}
		}

		public string AchievementName
		{
			[CompilerGenerated]
			get
			{
				return string_0;
			}
		}

		public QuestTileData(QuestTile questTile)
		{
			Achievement = new AchievementData(questTile.m_quest);
			int_0 = Achievement.Id;
			string_0 = Achievement.Name;
			if (questTile.m_cancelButtonRoot != null && questTile.m_canShowCancelButton)
			{
				IsCancelable = questTile.m_cancelButtonRoot.Active;
			}
			else
			{
				IsCancelable = false;
			}
		}
	}
}
